/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Microsoft
 * Date: 2023-01-04
 * Time: 9:32
 */
class OuterClass {
    public int data1 = 1;
    private int data2 = 2;
    public static int data3 = 3;
    //非静态内部类
    class InnerClass {
        public int data1 = 11111;
        public int data4 = 4;
        private int data5 = 5;
        public static final int data6 = 6;

        public void func() {
            System.out.println(data1);
            System.out.println(OuterClass.this.data1);
            System.out.println(data2);
            System.out.println(data3);
            System.out.println(data4);
            System.out.println(data5);
            System.out.println(data6);
        }
    }
    public void test(){
        InnerClass innerClass = new InnerClass();
        System.out.println(data1);
        System.out.println(data2);
        System.out.println(data3);
        System.out.println(innerClass.data4);
        System.out.println(innerClass.data5);
        System.out.println(InnerClass.data6);
    }
}

class OuterClass3{
    public void func(){
        class InnerClass {
            public int a = 1;
            public void test() {
                System.out.println("hello");
            }
        }
        InnerClass innerClass = new InnerClass();
        innerClass.test();
    }
}

interface IA {
    void func();
    void fun();
}
//class AA implements IA{
//    @Override
//    public void func() {
//        System.out.println("hello");
//    }
//}

public class Test {
    public static void main(String[] args) {

    }

    public static void func(Object object){

    }
}



//    public static void main4(String[] args) {
//        OuterClass3 outerClass3 = new OuterClass3();
//        outerClass3.func();
//    }
//    public static void main3(String[] args) {
//        OuterClass outerClass = new OuterClass();
//        OuterClass.InnerClass innerClass = outerClass.new InnerClass();
//        innerClass.func();
//    }

















